<?php
$this->helpers->htmlx->MenuText1(LANG_SYSTEM_PERMISSIONS_ROWS.': '.LANG_VIEW, "view.gif");
echo "<table class='eva'>";
   echo"<tr>";
	$this->helpers->htmlx->td(ucfirst(LANG_ROLE), ' class="gridHeader" width=""');
	$this->helpers->htmlx->td(ucfirst(LANG_ALLOW_CHILDS), ' class="gridHeader" width="" align = center');
    $this->helpers->htmlx->td(ucfirst(LANG_VIEW), ' class="gridHeader" width="" align = center');
	$this->helpers->htmlx->td(ucfirst(LANG_EDIT), ' class="gridHeader" width="" align = center');
	$this->helpers->htmlx->td(ucfirst(LANG_DELETE), ' class="gridHeader" width="" align = center');
    echo"</tr>";

    	$i=1;

    	foreach ($this->data[permissions] as $permission)
    	{
    		
    		if ($i%2==1) $cellStyle = 'gridCell1';
    		else $cellStyle = 'gridCell2';
    		
    		echo "<tr>";
    		
                echo "<td class='$cellStyle'>".$permission[role_name]."</td>"; 
                	
	            echo "<td class='$cellStyle' align='center'>";
	    			$this->helpers->htmlx->checkBox('', 1, $permission[child], 'disabled="disabled"');   		
	    		echo "</td>";  
	    		
        		echo "<td class='$cellStyle' align='center'>";
	    			$this->helpers->htmlx->checkBox('', 1, $permission[view], 'disabled="disabled"');   		
	    		echo "</td>";  
	    		
	    		echo "<td class='$cellStyle' align='center'>";
	    			$this->helpers->htmlx->checkBox('', 1, $permission[edit], 'disabled="disabled"');   		
	    		echo "</td>";  
	    		
	    	    echo "<td class='$cellStyle' align='center'>";
	    			$this->helpers->htmlx->checkBox('', 1, $permission[delete], 'disabled="disabled"');   		
	    		echo "</td>";  
	    		
		 
	    		
            echo "</tr>";
    		$i++;
    		$table_name = $permission[system_table_name];
    		
    	}
echo "</table>";
//$this->helpers->htmlx->submitTable('submit',$this->name.'/edit/'.$this->data[system_table_id].'/'.$this->data[row_id]);
echo "</form>";
?>